const joi = require('joi');
const username = joi.string().alphanum().min(1).max(10).required();
const securityAnswer = joi.string().min(1).max(100).required();
const newPassword = joi.string().pattern(/^\S{6,12}$/).required();

exports.getSecurityQuestion_schema = {
  body: {
    username
  }
};

exports.resetPassword_schema = {
  body: {
    username,
    securityAnswer,
    newPassword
  }
};